package org.com.coolfish.common.database.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

@Table(name = "kuyu_order_flow")
@Entity
public class KuyuOrderFlow extends IdEntity implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private Integer uid;		//对应kuyu_user的主键
	private String openid;		//用户id
	private String orderID;		//订单号
	private String type;		//0默认 2预购 3叠加
	private BigDecimal money;	//支付金额
	private Date addtime;		//订单生成时间
	private Integer status;		//订单完成状态，1未完成，2完成
	private Integer packageid;	//订购的套餐id 对应kuyu_package表的id
	private Integer cardid;		//对应的卡片ID（kuyu_card）
	private Integer operatorid;	//供应商id
	private Integer fid;		//
	private Integer sid;
	private Integer tid;
	private Integer trade_type;	//支付方式，1.微信支付 2.接口调用 3.余额支付 4.余额+微信 5.代理商平台支付
	private Integer count;		//购买的数量
	private String iccid;		//iccid值
	private Integer did;		//操作者id（kuyu_user）
	public KuyuOrderFlow() {
		super();
	}
	public KuyuOrderFlow(Integer uid, String openid, String orderID, String type, BigDecimal money, Date addtime,
			Integer status, Integer packageid, Integer cardid, Integer operatorid, Integer fid, Integer sid,
			Integer tid, Integer trade_type, Integer count, String iccid, Integer did) {
		super();
		this.uid = uid;
		this.openid = openid;
		this.orderID = orderID;
		this.type = type;
		this.money = money;
		this.addtime = addtime;
		this.status = status;
		this.packageid = packageid;
		this.cardid = cardid;
		this.operatorid = operatorid;
		this.fid = fid;
		this.sid = sid;
		this.tid = tid;
		this.trade_type = trade_type;
		this.count = count;
		this.iccid = iccid;
		this.did = did;
	}
	
	public KuyuOrderFlow(Integer packageid, Integer cardid, Integer operatorid, Integer trade_type, String iccid) {
		super();
		this.packageid = packageid;
		this.cardid = cardid;
		this.operatorid = operatorid;
		this.trade_type = trade_type;
		this.iccid = iccid;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getOrderID() {
		return orderID;
	}
	public void setOrderID(String orderID) {
		this.orderID = orderID;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public BigDecimal getMoney() {
		return money;
	}
	public void setMoney(BigDecimal money) {
		this.money = money;
	}
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getPackageid() {
		return packageid;
	}
	public void setPackageid(Integer packageid) {
		this.packageid = packageid;
	}
	public Integer getCardid() {
		return cardid;
	}
	public void setCardid(Integer cardid) {
		this.cardid = cardid;
	}
	public Integer getOperatorid() {
		return operatorid;
	}
	public void setOperatorid(Integer operatorid) {
		this.operatorid = operatorid;
	}
	public Integer getFid() {
		return fid;
	}
	public void setFid(Integer fid) {
		this.fid = fid;
	}
	public Integer getSid() {
		return sid;
	}
	public void setSid(Integer sid) {
		this.sid = sid;
	}
	public Integer getTid() {
		return tid;
	}
	public void setTid(Integer tid) {
		this.tid = tid;
	}
	public Integer getTrade_type() {
		return trade_type;
	}
	public void setTrade_type(Integer trade_type) {
		this.trade_type = trade_type;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public String getIccid() {
		return iccid;
	}
	public void setIccid(String iccid) {
		this.iccid = iccid;
	}
	public Integer getDid() {
		return did;
	}
	public void setDid(Integer did) {
		this.did = did;
	}
	@Override
	public String toString() {
		return "KuyuOrderFlow [uid=" + uid + ", openid=" + openid + ", orderID=" + orderID + ", type=" + type
				+ ", money=" + money + ", addtime=" + addtime + ", status=" + status + ", packageid=" + packageid
				+ ", cardid=" + cardid + ", operatorid=" + operatorid + ", fid=" + fid + ", sid=" + sid + ", tid=" + tid
				+ ", trade_type=" + trade_type + ", count=" + count + ", iccid=" + iccid + ", did=" + did + "]";
	}
	
	
}
